home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cmdline.lha / cmdline / src / lib / exits.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-03  |  1.0 KB  |  35 lines

  1. //------------------------------------------------------------------------
  2. // ^FILE: exits.h - define exit codes used by the CmdLine library
  3. //
  4. // ^DESCRIPTION:
  5. //    When we call exit(3C), we want to use a value that is appropriate
  6. //    for the operating system that we are on.  Here are the values
  7. //    that we need to define:
  8. //
  9. //       e_SUCCESS  -- no errors everything is fine
  10. //       e_USAGE    -- no errors but we didnt parse the command-line
  11. //                     because we saw a CmdArgUsage argument
  12. //       e_SYNTAX   -- a syntax error occurred
  13. //       e_INTERNAL -- an internal error occurred
  14. //
  15. // ^HISTORY:
  16. //    04/13/92    Brad Appleton    <brad@ssd.csd.harris.com>    Created
  17. //-^^---------------------------------------------------------------------
  18.  
  19. #ifndef e_SUCCESS
  20.  
  21. #ifdef vms
  22. # include <ssdef.h>
  23. # define  e_SUCCESS   SS$_NORMAL
  24. # define  e_USAGE     SS$_NOTMODIFIED
  25. # define  e_SYNTAX    SS$_BADPRAM
  26. # define  e_INTERNAL  SS$_CANCEL
  27. #else
  28. # define  e_SUCCESS   0
  29. # define  e_USAGE     1
  30. # define  e_SYNTAX    2
  31. # define  e_INTERNAL  127
  32. #endif
  33.  
  34. #endif
  35.